package com.feicheng.iou.exception;

import com.feicheng.iou.commom.ReturnCode;

public class SystemException extends RuntimeException{

    //状态码变量
    private ReturnCode returnCode;

    private static final long serialVersionUID = 6209082937647060098L;

    /**
     * @Author tianchunlei
     * @Description //处理自定义异常，传递指定枚举对象
     * @Date 2021/7/7 13:41
     * @Param
     * @return
     */
    public SystemException(ReturnCode returnCode) {
        super(returnCode.msg());
        this.returnCode = returnCode;
    }

    public ReturnCode getReturnCode() {
        return returnCode;
    }
}
